import axios from "axios" // 获取订单列表数据接口
 export const getlist =params=> {
  return axios({
    method: 'GET', // 
    url: `/order/weborder/page`,
    params
    // headers:{
    //   Authorization:'Basic cGFyazpwYXJr'
    // },
    
  })
}
/* 筛选查询 */
export const searchlist =params=> {  
  return axios({
    method: 'GET', // 
    url: `/order/weborder/page`,
    params
    // headers:{
    //   Authorization:'Basic cGFyazpwYXJr'
    // },
    
  })
}
/* 退款订单 */
export const Arefundorders =params=> {  
  return axios({
    method: 'GET', // 
    url: `/order/weborderrefund/page/`,
    params
    
    // headers:{
    //   Authorization:'Basic cGFyazpwYXJr'
    // },
    
  })
}
/* 取消订单 */
export const Canceltheorder =id=> {  
  return axios({
    method: 'GET', // 
    url: `/order/weborder/cancelwebOrder/${id}`
  
    // headers:{
    //   Authorization:'Basic cGFyazpwYXJr'
    // },
    
  })
}
/* 通过id查询客户详情 */
export const detailslist =id=> {  
  return axios({
    method: 'GET', // 
    url: `/order/weborder/id/${id}`,
   
  })
}
/*获取房屋信息 */
export const houselslist =params=> {  
  return axios({
    method: 'GET', // 
    url: `/order/weborderproject/getProject`,//?id=3&serviceType=1`,//写死展示数据
    params
   
  })
}
/* 导出订单 */
/* 导出订单 */
export const exportfils =params=> {
  return axios({
    method: 'GET', // 
    url: `/order/weborder/export`,
    params,
    responseType: 'blob' //导出文件必须添加的类型 Content-Type: application/json;charset=utf-8
   
})
}
/* 开票 */
export const Makeinvoic =obj=> {
  return axios({
    method: 'POST', // 
    url: `/order/iminvoicemanagement/save`,
    data:obj
    
   
})
}
